package cool.webstudy.admin.constant.enums.rescode;

import lombok.extern.slf4j.Slf4j;

/**
 * @author 莫振双
 * @date 2025/2/7 22:53
 * @description: 赛题相关错误码枚举
 */
@Slf4j
public enum CompetitionQuestionResCodeEnum implements BaseResCodeEnum{
    RC_ERROR_CREATE("130001","创建赛题失败！"),
    RC_ERROR_UPDATE("130002","更新赛题失败！"),
    RC_ERROR_DELETE("130003","删除赛题失败！"),
    RC_ERROR_CREATE_DIR("130004","创建赛题目录失败！"),
    RC_ERROR_CREATE_FILE("130005","保存赛题文件失败！"),
    RC_ERROR_DELETE_FILE("130006","删除赛题文件失败！"),
    RC_ERROR_QUERY_FILE("130007","查询赛题文件失败！"),
    RC_ERROR_QUERY_NOT_EXIST("130008","赛题信息不存在！"),
    RC_ERROR_QUERY_FILE_NOT_EXIST("130009","查询赛题文件不存在！"),
    RC_ERROR_QUERY("130010","查询赛题记录失败！"),
    RC_ERROR_UPDATE_STATUS("130011","更新赛题状态失败！"),
    ;
    private String code;
    private String msg;
    CompetitionQuestionResCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    @Override
    public String code() {
        return code;
    }

    @Override
    public String msg() {
        return msg;
    }
}
